README for replication files;
----------------------------
INITIAL DEPOSIT DATE: 11/19/24
THIS VERSION: 11/19/24
-----------------------------
ARTICLE: "What to Observe When Assuming Selection on Observables"
AUTHORS: Kevin M. Quinn, Guoer Liu, Lee Epstein, Andrew D. Martin
-----------------------------
Replication code and data needed to reproduce results presented in-text and in the Supplemental Information provided for the study. 

NOTE: 
      - Functions for exporting figures have been excluded. Results are printed in R. 
      - Functions exporting tables have been excluded. Results are printed in R. Tables will reproduce all results, but note that manual, presentational edits were made to all tables. 
      - Genetic Matching results and figures may exhibit minor variations due to randomization and approximation error, though these differences do not affect the substantive conclusions.

Please report any errors to Guoer Liu; current contact info: guoerliu@ucsd.edu
-----------------------------
FILE LIST:

[DATA]
      > Contender.dta 
            data file needed to reproduce results with respect to Black & Owen (2016): Contender judges
      > NonContender.dta 
            data file needed to reproduce results with respect to Black & Owen (2016): nonContender judges
      > mpsforsale.dta 
            data file needed to reproduce results with respect to Eggers and Hainmuller (2009)

[CODE]
      > t1_f1_f2_contender.R 
            replication code that produces contender judge results presented in Table 1 (top), Figure 1 (TASMD & KS) and Figure 2 (Q-Q)
      > t1_fA1_nonContender.R
            replication code that produces non-contender judge results presented in Table 1 (bottom) and Figure A1 (TASMD & KS)
      > t2_f3_f4_mps.R
            replication code that produces conservative mps results presented in Table 2 (top), Figure 3 (TASMD & KS) and Figure 4 (Q-Q)
      > t2_fA2_mps.R
            replication code that produces conservative mps results presented in Table 2 (bottom) and Figure A2 (TASMD & KS)
      > tA1_judges.R
            replication code that produces contender & noncontender judge results presented in Table A1 
      > func.R
            function code that calculates different statistics and produces figures
-----------------------------
PACKAGE VERSIONS:

haven - 2.5.4
WeightIt - 1.1.0
Matching - 4.10-14
rgenoud - 5.9-0.10
cem - 1.1.31
data.table - 1.15.4
RColorBrewer - 1.1-3
lattice - 0.22-6

R SESSION INFO:

R version 4.2.3 (2023-03-15)Platform: x86_64-apple-darwin17.0 (64-bit)Running under: macOS Monterey 12.1



